#include<iostream>
#include<string>
using namespace std;

void swap(int *a, int *b)
{
	int temp = *a;
	*a = *b;
	*b = temp;
}

int main(void)
{
	int a = 1,b = 2;
	swap(&a, &b);
	cout<<a<<" "<<b<<endl;
	system("pause");
	return 0;
}

